{include file="../../../application/admin/view/public/head" /}

<script type="text/javascript">var playertype = "{$type}";</script>

<div class="page-container p10">
  <form class="layui-form layui-form-pane" action="{:url('collect2/create')}?id=player" method="post">
    <div class="layui-tab">
      <blockquote class="layui-elem-quote layui-quote-nm mt10">
        <p class="f-20 text-success">推荐安装本地播放器，如DPlayer、CKplayer等播放器，第三方解析接口可加载广告或者劫持流量。</p>
      </blockquote>
      <div class="layui-tab-content">
        <div class="layui-tab-item layui-show jie-kou">
          <div class="layui-form-item" id="all-jie-kou">
            <p class="layui-btn layui-btn-sm player" data-type="jiekou">使用默认接口</p>
            <span id="local_player" style="margin-left: 10px;">
              <p class="layui-btn layui-btn-sm player" data-type="dplayer" play-type="zanzhu">使用Dplayer</p>
              <p class="layui-btn layui-btn-sm player" data-type="ckplayerx" play-type="zanzhu">使用CkplayerX</p>
              <p class="layui-btn layui-btn-sm player" data-type="videojs" play-type="zanzhu">使用Videojs</p>
              <p class="layui-btn layui-btn-sm player" data-type="aliplayer" play-type="zanzhu">使用Aliplayer</p></span>
          </div>
          {volist name="info" id="vo" key="k"}
          <div class="layui-form-item">
            <label class="layui-form-label">播放器名称：</label>
            <div class="layui-input-inline" style="width:100px">
              <input type="text" class="layui-input" value="{$vo.show}" lay-verify="required" placeholder="播放器的名称" name="show[]"></div>
            <label class="layui-form-label">播放器编码：</label>
            <div class="layui-input-inline" style="width:100px">
              <input type="text" class="layui-input layui-disabled" value="{$vo.from}" disabled="" name="from[]"></div>
          </div>
          <input type="hidden" value="{$vo.sort}" name="sort[]">
          <div class="layui-form-item jie-kou">
            <label class="layui-form-label">解析接口：</label>
            <div class="layui-input-inline" id="jiekou">
              <input type="text" class="layui-input layui-disabled jxlink" value="{$vo.parse}" placeholder="请输入解析接口" id="apis_{$k}" name="link[]"></div>
            <div class="layui-form-mid layui-word-aux">接口可以更换，不更换就用默认的</div>
		  </div>
		  {/volist}
        </div>
        <div class="layui-form-item">
          <div class="layui-input-block">
			<button type="submit" class="layui-btn layui-btn-disabled" id="layui-btn-submit" lay-submit="*" lay-filter="addplayer" data-child="true">网页加载中...</button>
			</div>
        </div>
      </div>
    </div>
  </form>
</div>
<script type="text/javascript" src="__STATIC__/mycj/js/set-player.js?v={$plug.code}"></script>
{include file="../../../application/admin/view/public/foot" /}

<script type="text/javascript">
    layui.use(['form','laypage', 'layer'], function() {
        // 操作对象
        var form = layui.form
                , layer = layui.layer
                , $ = layui.jquery;


    });
</script>
</body>
</html>